﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" Async="true" AutoEventWireup="true" CodeBehind="BillPay.aspx.cs" Inherits="NWBA_Public.BillPay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" runat="server">
        <div>
            <asp:Label ID="lblFromAcct" runat="server" Text="From Account: "></asp:Label>

            <asp:DropDownList ID="DropDownList2" runat="server">
                <asp:ListItem >Select Account</asp:ListItem>
            </asp:DropDownList>

            <asp:CustomValidator ID="AcctValidator" runat="server" ControlToValidate="DropDownList2" ErrorMessage="Please select your Account" Text="*" OnServerValidate="AcctValidator_ServerValidate" ValidationGroup="submit"></asp:CustomValidator>

        </div>        <div>
            <span><asp:Label ID="lblToPayee" runat="server" Text="To Payee: " Visible="False"></asp:Label>
            <asp:DropDownList ID="ddlToPayee" runat="server" DataSourceID="sqldsPayees" DataTextField="PayeeName" DataValueField="PayeeName">
            </asp:DropDownList>
            <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
            <asp:SqlDataSource ID="sqldsPayees" runat="server" ConnectionString="Data Source=localhost;Initial Catalog=WDT;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework" ProviderName="System.Data.SqlClient" SelectCommand="SELECT [PayeeName] FROM [Payee] ORDER BY [PayeeName]"></asp:SqlDataSource>
            </span>
        </div>        <div>
            <asp:Label ID="AmountL" runat="server" Text="Label">Amount: $</asp:Label>
            <asp:TextBox ID="AmountTB" runat="server"></asp:TextBox>   
            <asp:RequiredFieldValidator ID="AmtReqValidator" runat="server" ErrorMessage="Amount is needed" ControlToValidate="AmountTB" Text="*" ValidationGroup="submit"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="AmountTB" Type="Integer" Operator="DataTypeCheck" ErrorMessage="Must be a number" Text="*" ValidationGroup="submit"></asp:CompareValidator>
            <br />
            <asp:Label ID="LblScheduledDate" runat="server" Text="Scheduled Date: "></asp:Label>
            <asp:Calendar ID="cldScheduledDate" runat="server" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px">
                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                <NextPrevStyle VerticalAlign="Bottom" />
                <OtherMonthDayStyle ForeColor="#808080" />
                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                <SelectorStyle BackColor="#CCCCCC" />
                <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                <WeekendDayStyle BackColor="#FFFFCC" />
            </asp:Calendar>
        </div> 
           <div>
            <asp:Label ID="lblPeriod" runat="server" Text="Period: "></asp:Label>
               <asp:DropDownList ID="ddlPeriod" runat="server">
                   <asp:ListItem Selected="True" Value="One Time"></asp:ListItem>
                   <asp:ListItem Value="Daily"></asp:ListItem>
                   <asp:ListItem Value="Monthly"></asp:ListItem>
                   <asp:ListItem Value="Annual"></asp:ListItem>
               </asp:DropDownList>
        </div>
    <div>

        <asp:Button ID="CancellB" runat="server" Text="Cancel" OnClick="CancellB_Click" ValidationGroup="clear" />
        <asp:Button ID="ExcuteB" runat="server" Text="Execute" OnClick="ExcuteB_Click" ValidationGroup="submit" />

    </div>
    <div>
        
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="You have following error" ValidationGroup="submit" />        
        <asp:Label ID="lblErrMsg" runat="server"></asp:Label>
        </div>
</asp:Content>

